	<h1><?php echo !empty($this->title) ? $this->title : NULL ?></h1>
	<form method="post" action="">
		<table class="t-data">
			<thead>
				<tr class="tr-titles">
					<td class="td-checks"><input type="checkbox" class="i-check-all" /></td>
					<?php echo AdminHelper::getColumnTitle($this->name, $order, 'place_priority', 'Приоритет') ?>
					<?php echo AdminHelper::getColumnTitle($this->name, $order, 'place_name', 'ID') ?>
					<?php echo AdminHelper::getColumnTitle($this->name, $order, 'place_title', 'Название') ?>
					<td class="td-operations">&nbsp;</td>
				</tr>
				<tr class="tr-filters">
					<td class="td-checks"><input type="submit" class="i-filter-on" name="filterOn" value="" title="Применить фильтр" /></td>
					<td class="td-operations">&nbsp;</td>
					<td><?php echo AdminHelper::getColumnFilter('text', $filter, 'place_name') ?></td>
					<td><?php echo AdminHelper::getColumnFilter('text', $filter, 'place_title') ?></td>
					<td><input type="submit" class="i-filter-off" name="filterOff" value="" title="Отменить фильтр" /></td>
				</tr>
			</thead>
			<tbody>
<?php if (empty($data)): ?>
				<tr class="tr-dark">
					<td>&nbsp;</td>
					<td colspan="3">Пусто!</td>
					<td>&nbsp;</td>
				</tr>
<?php endif ?>
<?php for($i = 0, $length = count($data); $i < $length; $i++): ?>
<?php
	$class = array();
	if($i % 2 == 0)
	{
		$class[] = 'tr-dark';
	}
	if($data[$i]->place_hidden == 1)
	{
		$class[] = 'tr-hidden';
	}
	$class = implode(' ', $class);
?>
				<tr<?php echo !empty($class) ? ' class="' . $class . '"' : NULL ?>>
					<td class="td-checks"><input type="checkbox" name="id[]" value="<?php echo $data[$i]->place_id ?>" /></td>
					<td><?php echo $data[$i]->page_priority ?></td>
					<td><a href="<?php echo $this->name, 'edit/', $data[$i]->page_id ?>/"><?php echo $data[$i]->page_name ?></a></td>
					<td><a href="<?php echo $this->name, 'edit/', $data[$i]->page_id ?>/"><?php echo $data[$i]->page_title ?></a></td>
					<td><a href="<?php echo $this->name, 'delete/', $data[$i]->page_id ?>/"><img src="<?php echo Yii::app()->params['DOMAIN_STATIC'] ?>/images/admin/delete-icon.gif" width="20" height="20" alt="Удалить" title="Удалить" /></a></td>
				</tr>
<?php endfor ?>
			</tbody>
			<tfoot>
				<tr>
					<td class="td-checks">
						<input type="submit" class="i-delete" name="delete" value="" title="Удалить отмеченные" />
					</td>
					<td colspan="3">
						<a href="<?php echo $this->name ?>add/" class="a-add">Добавить</a>
					</td>
					<td class="td-operations">&nbsp;</td>
				</tr>
			</tfoot>
		</table>
	</form>